package com.lock.immersive.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName comment
 */
@TableName(value = "comment")
@Data
public class Comment implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer commentId;

    /**
     * 被回复的评论id
     */
    private Long parentId;

    /**
     * 发表评论的用户id
     */
    private Integer userId;

    /**
     * 被评论的用户id
     */
    private Integer toUserId;

    /**
     * 评论内容
     */
    private Integer content;

    /**
     * 点赞数
     */
    private Integer likeCount;

    /**
     * 评论时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @TableLogic
    private Integer isDelete = 0;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}